package com.leen.video.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**

 *
 * @author yy
 * @since 2021-05-19
 */
@Setter
@Getter
@Entity
@Table(name = "gen_test")
@ApiModel(value="GenTest对象", description="代码生成测试")
public class GenTest implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Integer id;

    @Column(name = "name")
    private String name;

    @ApiModelProperty(value = "性别")
    @Column(name = "sex")
    private Integer sex;

    @Column(name = "create_time")
    private Date createTime;


}
